//
//  FBBooksData.m
//  FindBook
//
//  Created by tianke on 13-11-1.
//  Copyright (c) 2013年 lzx. All rights reserved.
//

#import "FBBooksData.h"

@implementation FBBooksData

@end


@implementation BookOnlineData

+ (BookOnlineData *)getBookOnlineDataByString:(NSString *)string
{
    BookOnlineData *bookOnlineData = [[BookOnlineData alloc] init];
    
    NSRange range = [string rangeOfString:@":"];
    if (range.location == NSNotFound) {
        return nil;
    }
    bookOnlineData.name = [string substringToIndex:range.location];
    bookOnlineData.addr = [string substringFromIndex:range.location + 1];
    
    return bookOnlineData;
}

@end